#import <Cocoa/Cocoa.h>

@interface ToDo : NSObject {
	NSString *description;
	int group;
	int priority;
	int position;
	NSString *source;
	NSCalendarDate *creationDate;
	NSCalendarDate *dueDate;
	NSCalendarDate *checkedDate;
	int done;
	int icon;
}
- (NSString *)getDescription;
- (void)setDescription:(NSString *)myDescription;
- (ToDo *)copy;
- (NSComparisonResult)compareAlpha:(ToDo *)myToDo;
- (NSComparisonResult)comparePriority:(ToDo *)myToDo;
- (NSComparisonResult)comparePosition:(ToDo *)myToDo;
- (NSComparisonResult)compareDueDate:(ToDo *)myToDo;
- (NSComparisonResult)compareCreationDate:(ToDo *)myToDo;
- (void)encodeWithCoder:(NSCoder *)coder;
- (id)initWithCoder:(NSCoder *)coder;

- (void)setDone:(int)state;
- (int)getDone;
- (void)setSource:(NSString *)mySource;
- (NSString *)getSource;
- (void)setGroup:(int)groupid;
- (int)getGroup;
- (void)setDueDate:(NSCalendarDate *)date;
- (NSCalendarDate *)getDueDate;
- (void)setCreationDate:(NSCalendarDate *)date;
- (NSCalendarDate *)getCreationDate;
- (void)setCheckedDate:(NSCalendarDate *)date;
- (void)setCheckedNow;
- (void)setUnchecked;
- (NSCalendarDate *)getCheckedDate;
- (void)setPriority:(int)prio;
- (int)getPriority;
- (void)setPosition:(int)pos;
- (int)getPosition;
- (void)setIcon:(int)myIcon;
- (int)getIcon;
- (BOOL)isExpired;

@end
